@import './variables.scss';
.g {
  .g-container {
    padding: 12px;
    box-sizing: border-box;
    margin: 0 auto;
    background: #fff;
  }
  .g-font--danger {
    color: $--color-danger;
  }
  .g-font--primary {
    color: $--color-primary;
  }
  .g-font--warning {
    color: $--color-warning;
  }
  .g-font--success {
    color: $--color-success;
  }

  /*头部样式*/
  .g-title {
    position: relative;
    line-height: 40px;
    border-bottom: 1px solid #e2dede;
    margin: 0 0 12px 0;
    padding-left: 8px;
    font-size: 16px;
    font-weight: bold;
    padding-bottom: 5px;
    color: #333;
    &:after {
      content: '';
      position: absolute;
      left: -4px;
      height: 24px;
      width: 4px;
      top: 8px;
      background: $--color-primary;
    }
  }
}

.mtl__text-muted {
  color: #d9d9d9;
  padding: 0 4px;
  user-select: none;
}
.container {
  padding: 12px;
  box-sizing: border-box;
  margin: 0 auto;
}

/*单行文本省略*/
.text-ellipsis--one {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/*div 滚动条样式*/
.div--webkit--scrollbar {
  &::-webkit-scrollbar-track {
    border-radius: 3px;
    background-color: #f7f7f7;
  }
  &::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background-color: #c9cbd2;
  }
  &::-webkit-scrollbar {
    width: 6px;
    height: 6px;
    background-color: #f7f7f7;
  }
}

/*骨架屏样式*/
section.skeleton {
  width: 100%;
  height: 100%;
  position: relative;
  p {
    position: absolute;
    margin: 0;
    padding: 0;
  }
}
